package com.carpool.uti;

import android.app.ProgressDialog;
import android.content.Context;

import com.carpool.ViewMap;
import com.google.android.maps.MapView;

public class Uti {
	public static void toggleMapview(MapView mapView ) {
		mapView.setSatellite(false);
		mapView.setStreetView(false);
		mapView.setTraffic(false);
	}

	public static void toggleSatellite(MapView mapView) {
		mapView.setSatellite(true);
		mapView.setStreetView(false);
		mapView.setTraffic(false);
	}

	public static void toggleTraffic(MapView mapView) {
		mapView.setSatellite(false);
		mapView.setStreetView(false);
		mapView.setTraffic(true);
	}
	public static String getString(Context context, int id) {
		return context.getString(id);
	}
	public static void startProgressBar(Context context){
		ProgressDialog progressBar = ((ViewMap)context).progressBar;
		progressBar.setMessage("Searching...");
		progressBar.setTitle("Please Wait");
		progressBar.setIndeterminate(true);
		progressBar.show();
	}
}
